/*
 * @Author: lineCode
 * @Date: 2025-06-26 18:07:14
 * @LastEditors: lineCode
 * @LastEditTime: 2025-06-27 16:21:18
 * @FilePath: /backend/shorthand-go/httpServer/router.go
 */
package httpServer

import (
	"net/http"
	"shorthand-go/httpServer/controller/qixiang"

	"github.com/gin-gonic/gin"
)

func RouterInit(router *gin.Engine) {
	// 健康检查接口
	router.GET("/health", func(c *gin.Context) {
		c.String(http.StatusOK, "OK")
	})

	router.Use(gin.Recovery())
	r := router.Group("/content")
	// 支付接口
	payRouter(r)
}

func payRouter(r *gin.RouterGroup) {
	g := r.Group("/qixiang")
	//g.POST("/pay", qixiang.Pay, middlewares.NewUserCheckLoginFunc())
	g.GET("/notify", qixiang.Notify)
}
